﻿namespace UnityEngine.Flash
{
    using System;

    public sealed class FlashPlayer
    {
        internal static string GetUnityAppConstants(string name)
        {
            object[] arguments = new object[] { name };
            return ActionScript.Expression<string>("UnityNative.getUnityAppConstants()[{0}]", arguments);
        }

        public static string TargetSwfVersion
        {
            get
            {
                return GetUnityAppConstants("TargetSwfVersion");
            }
        }

        public static string TargetVersion
        {
            get
            {
                return GetUnityAppConstants("TargetFlashPlayerVersion");
            }
        }
    }
}

